<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <style>
        .main {
            text-align: center;
            width: 100%;
        }

        .login {
            width: 500px;
            height: 250px;
            border: 1px solid black;
            margin: 150px auto;
        }
    </style>
</head>
<body>
<div class="main">
    <h2>Hello World!</h2>
    <div class="login">
        <p>方式1</p>
        <form action="login" method="post">
            用户名:<input type="text" name="userName"><br>
            密&nbsp;&nbsp;&nbsp;&nbsp;码:<input type="password" name="passWord"><br>

            <input type="submit" value="login">
            <input type="reset" value="reset">

        </form>
        <a href="register.jsp">register</a>
    </div>
    <div class="login">
        <p>方式2</p>
        <form action="login2" method="post">
            用户名:<input type="text" name="userName"><br>
            密&nbsp;&nbsp;&nbsp;&nbsp;码:<input type="password" name="passWord"><br>

            <input type="submit" value="login">
            <input type="reset" value="reset">

        </form>
        <a href="register.jsp">register</a>
    </div>
</div>
</body>
</html>
